package com.wtf.dsp.admin.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * date: 2022/6/18 10:59
 * @author linhuanyou
 * @email 496558736@qq.com
 * @version 1.0
 */
@Data
@ToString
@ApiModel("表字段请求类")
public class ColumsDTO {
    @ApiModelProperty("命名空间")
    @NotBlank(message = "请输入命名空间")
    @Length(min = 0,max = 20,message = "请输入不超过20个字符")
    private String ns;
    @ApiModelProperty("数据源")
    @NotBlank(message = "请输入数据源")
    @Length(min = 0,max = 20,message = "请输入不超过20个字符")
    private String ds;
    @ApiModelProperty("表名")
    @NotBlank(message = "请输入表名")
    private String tableName;
}
